<?php include_once('timeformat.php'); ?>
<div class="nodes promoted">
    <?php
        if (count($nodes) == 0) {
            __('No items found.');
        } else {
            foreach ($this->params['named'] AS $nn => $nv) {
                $paginator->options['url'][$nn] = $nv;
            }
        }
    ?>

    <?php 
        foreach ($nodes AS $node) {
            $layout->setNode($node);
    ?>
    <div id="node-<?php echo $layout->node('id'); ?>" class="node node-type-<?php echo $layout->node('type'); ?>">
    <!-- blog item -->
		<div class="blogItem">
       <div class="itemTitle clearfix">

            <div class="blog_date"><?php $datehelper = new DateHelper; $url = $layout->node('url');
                                      echo $datehelper->generateDateField($layout->node('created'));            
                                      echo $datehelper->generateLikeButton(Router::url($this->here, true) . $url['type'] . '/' . $url['slug']); ?> 
            </div><div class="blog_caption"><?php echo $html->link($layout->node('title'), $layout->node('url')); ?>
                                        </div>
        </div>
    			
    <?php
        echo $layout->nodeBody();
        echo $layout->nodeMoreInfo();
    ?>
    </div></div>
    <?php 
        }
    ?>

    <div class="paging"><?php echo $paginator->numbers(); ?></div>
</div>
